package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Matchdetailtype implements Serializable {
    private Integer mdtno;

    private String mdtdesc;

    private static final long serialVersionUID = 1L;

    public Integer getMdtno() {
        return mdtno;
    }

    public void setMdtno(Integer mdtno) {
        this.mdtno = mdtno;
    }

    public String getMdtdesc() {
        return mdtdesc;
    }

    public void setMdtdesc(String mdtdesc) {
        this.mdtdesc = mdtdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Matchdetailtype other = (Matchdetailtype) that;
        return (this.getMdtno() == null ? other.getMdtno() == null : this.getMdtno().equals(other.getMdtno()))
            && (this.getMdtdesc() == null ? other.getMdtdesc() == null : this.getMdtdesc().equals(other.getMdtdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMdtno() == null) ? 0 : getMdtno().hashCode());
        result = prime * result + ((getMdtdesc() == null) ? 0 : getMdtdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mdtno=").append(mdtno);
        sb.append(", mdtdesc=").append(mdtdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}